package com.ltmonitor.service.impl;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ltmonitor.dao.IPlatformStateDao;
import com.ltmonitor.entity.PlatformState;
import com.ltmonitor.service.IPlatformStateService;

@Service("platformStateService")
public class PlatformStateService extends BaseService<Long, PlatformState> implements IPlatformStateService {

	@Autowired
	private IPlatformStateDao PlatformStateDao;
	public PlatformState getPlatformState()
	{
		PlatformState ps =  (PlatformState)this.find("from PlatformState order by entityId");
		if(ps == null)
		{
			ps = new PlatformState();
			//this.saveOrUpdate(ps);
		}
		return ps;
	}

	

}


